package com.zby.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zby.common.utils.ResultUtil;
import com.zby.model.pojo.Article;
import com.zby.vo.ArticleVo;

import java.util.List;

public interface ArticleService extends IService<Article> {
    int addArticle(Article article);

    List<ArticleVo> selectArticle();

    int updateArticle(Article article);

    ArticleVo selectArticleContent(Integer id);

    int del(List<Integer> ids);

    int updateViewLikes(Integer articleId, int number);
   int  updateAddViewLikes(Integer articleId, Integer number);
   
   ResultUtil<List<ArticleVo>> getPersonalArticle(String token);

}